import java.io.BufferedReader;
import java.nio.file.Files;
import java.nio.file.Paths;

/**
 * @Author: XuDi
 * @Date: 2022/5/18 23:09
 */
public class BufferReaderTest {
    public static void main(String[] args)throws Exception {
        // 导入的信息 学号 姓名 性别 电话
        String fileName = "D:\\document\\cwwj\\20cs1.txt";

        try (BufferedReader br = Files.newBufferedReader(Paths.get(fileName))){
            String line;
            while ((line = br.readLine()) != null) {
                String[] strings =line.split("\\s+",4);
                try {
                    Output.outPut(strings[0],strings[1],strings[2],strings[3], 6,1,15 );
                }catch (Exception e){
                    e.getStackTrace();
                }
            }
        }
    }
}
